<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
</head>
<body>
    <div>
        新密码：<input type="password" name="newPassword" id="newPassword">
        <input type="button" id="updatePassBtn" value="确认">
    </div>

</body>
</html>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
    $(document).ready(function () {
        $("#updatePassBtn").click(function () {
            var newPassword = $("#newPassword").val();
            $.ajax({
                method:"post",
                url:"student?action=forgetUpdatePassword",
                data:{"newPassword":newPassword},
                type:"json",
                success:function (result) {
                    alert(result.msg);
                }
            })

        })

    })
</script>